package com.xzt.transaction.service;

import com.xzt.transaction.mapper.LogInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class LogInfoService {

    @Autowired
    private LogInfoMapper logInfoMapper;

    @Transactional(propagation = Propagation.NEVER)
    public Integer insertLog(String name,String op){
        Integer result = logInfoMapper.insertLog(name, op);
        return result;
    }

}
